package com.zengjianjun.es.demo.entity;

import com.zengjianjun.es.demo.common.EsConstant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.List;

/**
 * @author zengjianjun
 */
@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
@Document(indexName = EsConstant.INDEX_GAID)
@AllArgsConstructor
@NoArgsConstructor
public class EsGaidEntity extends EsBaseEntity {

    @Field(type = FieldType.Keyword)
    private String gaid;

    @Field(type = FieldType.Keyword)
    private String packageName;

    @Field(type = FieldType.Keyword)
    private String event;

    @Field(type = FieldType.Keyword)
    private String source;

    @Field(type = FieldType.Keyword)
    private String country;

    @Field(type = FieldType.Keyword)
    private String platform;

    @Field(type = FieldType.Keyword)
    private String attribution;

    @Field(type = FieldType.Keyword)
    private String clickId;

    @Field(type = FieldType.Keyword)
    private List<String> tags;

    @Field(type = FieldType.Keyword)
    private String createTime;

    @Field(type = FieldType.Keyword)
    private String cat;

    @Field(type = FieldType.Keyword)
    private String subCat;
}
